#if !defined(AFX_CXLISTBOX_H__C9AE966E_226B_4632_A437_383D66AD0C10__INCLUDED_)
#define AFX_CXLISTBOX_H__C9AE966E_226B_4632_A437_383D66AD0C10__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


using std::ofstream;
class CCxListBox : public CListBox
{
// Construction
public:
	CCxListBox();

// Attributes
private:
	BOOL			m_isOX;
	ofstream		m_OutLogFile;
	ofstream		m_InLogFile;

public:
	void     SetShowMode(BOOL flag){m_isOX=flag;}
	BOOL     PushString(UINT mode,CString );
// Operations
public:
protected:
	void			DeleteItem(LPDELETEITEMSTRUCT lpDeleteItemStruct);
	void            DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	void			MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
    
	void            WriteLogFile_Out(LPCSTR  message);
	void            WriteLogFile_In(LPCSTR  message);	


public:
	virtual ~CCxListBox();
protected:
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CXLISTBOX_H__C9AE966E_226B_4632_A437_383D66AD0C10__INCLUDED_)
